package com.yyds.mapper;

import com.yyds.pojo.VaccineVaccine;
import com.yyds.vo.EchartPieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface VaccineVaccineMapper {

    //添加疫苗种类
    public Integer insertVaccineVaccineMapper(VaccineVaccine vaccine);

    //删除疫苗种类
    public Integer deleteVaccineVaccineMapper(Integer vaccine_id);
    //删除部分疫苗种类
    public Integer deleteAllVaccineVaccineMapper(List<Integer> list);

    //修改疫苗种类
    public Integer updateVaccineVaccineMapper(@Param("oldVaccine") VaccineVaccine oldVaccine,@Param("newVaccine") VaccineVaccine newVaccine);

    //查询全部疫苗种类
    public List<VaccineVaccine> queryVaccineVaccineMapper(Map<String, Object> map);
    //查询某个疫苗种类
    public VaccineVaccine querySingleVaccineVaccineMapper(Integer vaccine_id);
    //查询疫苗品种类型
    public List<EchartPieVo> queryVaccineVarietyMapper();
    //查询全部疫苗名字
    public List<String> queryVaccineNameMapper();
    //查询 - 根据疫苗名字查询疫苗编号
    public Integer queryVaccineIdMapper(String vaccine_name);
}
